package com.evan.framework.core.base;

/**
 * @Description: 抽象返回对象
 * @Author liudeguang
 */
public abstract class AbstractResponse extends AbstractModel {

    /**
     * 返回码
     */
    private String code;

    /**
     * 返回信息
     */
    private String message;


    public boolean isSuccess() {
        return (BaseEnum.FAIL.getCode() == code);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
